package com.opensicence.test.javafx;
	
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.effect.BoxBlur;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.scene.shape.StrokeType;
import javafx.stage.Stage;


public class AnimateTest2 extends Application {
	@Override
	public void start(Stage primaryStage) {
		try {
			Group root = new Group();
			Group group = new Group();
			for (int i = 0; i <30; i++) {
				Circle circle = new Circle(150, Color.web("white",0.05));
				circle.setStrokeType(StrokeType.OUTSIDE);
				circle.setStroke(Color.web("white",0.16 ));
				circle.setStrokeWidth(4);
				group.getChildren().add(circle);
			}
			group.setEffect(new BoxBlur(10, 10, 3));
			root.getChildren().add(group);
			Scene scene  = new Scene(root, 800, 600, Color.BLACK);
			primaryStage.setScene(scene);
			primaryStage.setTitle("我的第一个JAVAFX");
			primaryStage.show();
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	public static void main(String[] args) {
		launch(args);
	}
}
